package com.minxi.jsp.service.Impl;

import com.minxi.jsp.dao.UserDao;
import com.minxi.jsp.dao.impl.UserDaoImpl;
import com.minxi.jsp.javabean.UserInfo;
import com.minxi.jsp.service.UserService;

public class UserServletImpl implements UserService {
    @Override
    public Boolean add(UserInfo userInfo) {
        // 调用DAO（操作数据库的接口）去操作数据库
        UserDao userDao = new UserDaoImpl();
        return userDao.add(userInfo);
    }
}
